<?php

if(!function_exists('fb_api'))
{
	function fb_api($name,$value)
	{
		$CI =& get_instance();
		$fb = $CI->facebook->api('/'.$name);
		return $fb[$value];
	}
}

if(!function_exists('fb'))
{
	function fb($name)
	{
		return json_decode(file_get_contents('http://graph.facebook.com/'.$name));
	}
}

?>